package gui.tools;

import java.awt.Cursor;
import java.awt.Point;
import java.awt.Toolkit;

import javax.swing.ImageIcon;

import tools.vetorial.PointSelectionTool;
import tools.vetorial.VectorialLineTool;

public class VectorialLineToolItem extends ToolItem {

	public VectorialLineToolItem() {
		super(new VectorialLineTool());

		this.setPropertiesEditor(new VetorialLineSetup((PointSelectionTool)this.getTool()));
		
		this.setName("vectorialline");
		
		this.setTooltip("Linha Vetorial");
		
		ImageIcon icon = new ImageIcon(
				PencilToolItem.class.getResource("/imagens/line_16x16.png"));
	
		Toolkit toolkit = Toolkit.getDefaultToolkit();
		
		Cursor c = toolkit.createCustomCursor(
				icon.getImage(),
				new Point(0, 15) , 
				"pencil");
		
//		((TextBoxTool)this.getTool()).setCursor(c);
		
		this.setIcon(icon);
	}
}
